﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using GeneralTool.CoreLibrary.IniHelpers;

using Microsoft.SqlServer.Server;

namespace SocketTest.IniCommon
{
    public class WindowNode : Category
    {
        public WindowNode(string sectionName) : base(sectionName)
        {
            //this.Width = new Node<int>(sectionName, nameof(this.Width), 1, true);
            //this.DataAccessKindValue = new Node<DataAccessKind>(sectionName,nameof(this.DataAccessKindValue), DataAccessKind.Read,true);

            this.Boolean = new Node<bool>(sectionName, nameof(Boolean), true, true);
            this.Str = new Node<string>(sectionName, nameof(this.Str), "", true);
            this.Width = new Node<int>(sectionName, nameof(this.Width), 0, true);
            this.DataAccessKindValue = new Node<DataAccessKind>(sectionName, nameof(this.DataAccessKindValue), DataAccessKind.None, true);
            this.Height = new Node<double>(sectionName, nameof(this.Height), 0, true);

        }

        public Node<int> Width { get; set; }
        public Node<double> Height { get; set; }

        public Node<DataAccessKind> DataAccessKindValue { get; set; }

        public Node<bool> Boolean { get; set; }
        public Node<string> Str { get; set; }

    }
}
